package com.dream.util;

import com.google.gson.Gson;

public class ResultToLayui {
	public int code;
	public String msg;
	public int count;
	public Object data;
	
	public static String toClient(int code, String msg, int count, Object data) {
		ResultToLayui r=new ResultToLayui();
		r.code=code;
		r.count=count;
		r.msg=msg;
		r.data=data;
		Gson g=new Gson();
		return g.toJson(r);
	}
	
	

}
